﻿@model SIG.DAL.Dapper.Model.Technology
<tr class="item-container">
    <td>
        @Model.Title
    </td>
    <td>
        @Model.EnglishTitle
    </td>
    <td>
        @if (!string.IsNullOrEmpty(Model.ImagesURL))
        {
            var imageUrl = Model.ImagesURL.Split('|');

            foreach (var item in imageUrl)
            {
                <a href="@item" data-toggle="lightbox" title="@item">
                    <img class="img-thumbnail" src="@string.Format("{0}?w=60&h=40&mode=crop", item)" alt="@Model.Title" style="width:60px;height:40px;" />
                </a>
            }
        }

    </td>
    <td>
        @Model.ProductTitle
    </td>

    <td>
        @if (Model.Active)
        {
            <a href="#" data-url="@Url.Action("Active", new {id = Model.Id})" class="active-item" title="激活" data-action="锁定">
                <i class="fa fa-check text-success"></i>
            </a>
        }
        else
        {
            <a href="#" data-url="@Url.Action("Active", new {id = Model.Id})" class="active-item" title="锁定" data-action="激活">
                <i class="fa fa-remove text-danger"></i>
            </a>
        }
    </td>
   
    <td>     
       
        <a href="@Url.Action("Edit",new {id = Model.Id})" class="btn btn-primary btn-sm" title="@Buttons.Edit"><i class='fa fa-edit fa-fw'></i></a>
        <a href="#" data-url="@Url.Action("Delete", new {id = Model.Id})" class="btn btn-danger btn-sm delete-item" title="@Buttons.Delete">
            <i class="fa fa-trash-o fa-fw"></i>
        </a>
    </td>

</tr>